package com.itheima.controller;

import com.itheima.domain.Student;
import com.itheima.service.StudentService;

import java.util.Scanner;

public class OtherStudentController extends BaseStudentController{


    @Override
    public Student getStudentInfo(String sid) {

        //录入其他信息
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        //封装数据
        Student student = new Student(sid, name, age, birthday);
        return student;
    }
}
